package com.suisung.shopsuite.account.model.vo;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.suisung.shopsuite.account.model.entity.UserDistribution;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@ApiModel(description = "分销用户信息")
public class UserDistributionVo extends UserDistribution {
    @ApiModelProperty("佣金总额:历史总额度")
    private BigDecimal commissionAmount;

    @ApiModelProperty("推广消费佣金")
    @JsonProperty("commission_buy_amount_0")
    private BigDecimal commissionBuyAmount0;

    @ApiModelProperty("消费佣金")
    @JsonProperty("commission_buy_amount_1")
    private BigDecimal commissionBuyAmount1;

    @ApiModelProperty("消费佣金")
    @JsonProperty("commission_buy_amount_2")
    private BigDecimal commissionBuyAmount2;

    @ApiModelProperty("已经结算佣金")
    private BigDecimal commissionSettled;

    @ApiModelProperty("用户昵称")
    private String userNickname;

}
